package frontend.parser.syntaxtree;

import frontend.parser.syntaxtree.symbol.NonTerminalSymbol;
import frontend.parser.syntaxtree.symbol.TerminalSymbol;

import java.util.function.Consumer;

/**
 * mulExp
 * @author 杨凯伟
 * @date 2024/10/14
 */
public class AddExpNodeForSingle extends AddExpNode {
    public MulExpNode mulExp;

    @Override
    public void walk(Consumer<TerminalSymbol> terConsumer, Consumer<NonTerminalSymbol> nonTerConsumer) {
        mulExp.walk(terConsumer, nonTerConsumer);
        nonTerConsumer.accept(new NonTerminalSymbol(this));
    }
}
